﻿<Window x:Class="SeleniumRecorder.FilterWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Icon="pack://application:,,,/Resources/favicon.ico" 
        Title="Filter Control" Height="200" Width="500"  AllowsTransparency="True" BorderBrush="Black" BorderThickness="2" WindowStyle="None" Background="{DynamicResource WindowBackgroundBrush}"   WindowStartupLocation="CenterScreen">
    <Window.Resources>
        <LinearGradientBrush x:Key="WindowBackgroundBrush" StartPoint="0,0" EndPoint="0,1">
            <GradientStop Color="White" Offset="0.9"/>
            <GradientStop Color="#FF6A85D8" Offset="0.01"/>
            <GradientStop Color="#FF3464C4" Offset="1"/>
            <GradientStop Color="#FF202E7E" Offset="1"/>
        </LinearGradientBrush>

        <Style x:Key="closeButton"  TargetType="Button">
            <Setter Property="VerticalAlignment" Value="Top" />
            <Setter Property="FontFamily" Value="Verdana" />
            <Setter Property="FontSize" Value="9" />
            <Setter Property="FontWeight" Value="Bold" />
            <Setter Property="Foreground" Value="White" />
            <Setter Property="Cursor" Value="Hand" />
            <Setter Property="Margin" Value="15,7" />
            <Setter Property="Background" Value="{x:Null}" />
        </Style>
    </Window.Resources>

    <Window.Effect>
        
        <DropShadowEffect Color="Black" Opacity=".8" ShadowDepth="10"  />
    </Window.Effect>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="2*"/>
            <RowDefinition Height="9*"/>
        </Grid.RowDefinitions>

        <Label Grid.Row="0" Grid.ColumnSpan="3" FontSize="20" HorizontalAlignment="Center">
            Filter Controls
        </Label>

        <Button x:Name="btnClose"
           Grid.Row="0"  HorizontalAlignment="Right" VerticalAlignment="Top"
            Style="{StaticResource closeButton}"
            ToolTip="Close"
            Click="btnClose_Click_Close"
            Content="Close X" />


        <Grid Grid.Row="1" Margin="0,0,10,10" MinHeight="150">

            <Grid.RowDefinitions>
                <RowDefinition Height="10"/>
                <RowDefinition Height="1*"/>
                <RowDefinition Height="50"/>
                <RowDefinition Height="30"/>
                

            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="90"/>
                <ColumnDefinition Width="2*"/>
                <ColumnDefinition Width="2*"/>
            </Grid.ColumnDefinitions>
            
            <Label Grid.Row="1" Grid.ColumnSpan="1" FontSize="17" VerticalAlignment="Center" HorizontalAlignment="Center">

                Controls :</Label>
            <TextBox Grid.Row="1" Name="FilterValue" Margin="12" Grid.Column="1" FontSize="17"   Grid.ColumnSpan="2">

                <TextBox.BitmapEffect>

                    <DropShadowBitmapEffect></DropShadowBitmapEffect>
                </TextBox.BitmapEffect>
            </TextBox>
            <Button Grid.Row="2" HorizontalAlignment="Left" Margin="10,10,10,10" Grid.Column="1" Width="60" Click="Button_Click_1" >
                <Button.BitmapEffect>

                    <DropShadowBitmapEffect></DropShadowBitmapEffect>
                </Button.BitmapEffect> Save
            </Button>
            <Button Grid.Row="2" HorizontalAlignment="Left" Margin="10,10,10,10" Grid.Column="2"  Width="60" Click="Button_Click_2">
                <Button.BitmapEffect>

                    <DropShadowBitmapEffect></DropShadowBitmapEffect>
                </Button.BitmapEffect> Cancel
            </Button>
        </Grid>

    </Grid>
</Window>
